﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>视频播放</title>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/video.js/7.3.0/video-js.min.css" rel="stylesheet">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/video.js/7.3.0/video.min.js"></script>
</head>

<body>
    <video style="text-align: center;margin: 0 auto" id="example_video_1" class="video-js vjs-default-skin" controls preload="none" poster="@ViewBag.coverUrl">
        <source src="@ViewBag.videoUrl" type="video/mp4">
    </video>
</body>
</html>
<script>
    var player = videojs('example_video_1', {
        muted: true,
        controls: true,
        width: 700,
        height: 500,
        loop: true
        // 更多配置.....
    });
</script>
